# Author: ZhangYu

import socket

client = socket.socket()
client.connect(('127.0.0.1',6969))
while True:
    msg = input(">> :")
    if msg:
        client.send(msg.encode("utf-8"))
        data = client.recv(1024)
        print(data)
    else:
        pass
client.close()